<?php
/**
 * Created by PhpStorm.
 * User: adminchyistrator
 * Date: 2018/12/8
 * Time: 9:17
 */

namespace app\adminchy\controller;

use think\Controller;
use think\facade\Session;

class Common extends Controller
{
    public function initialize(){
        $adminchy = Session::get('user');
        if (empty($adminchy)){
            $this->redirect('adminchy/login/index');
        }
    }
}